//
//  ImagePickerManager.h
//  KingSelected
//
//  Created by 杨鹏 on 2023/10/28.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef void(^ImagePickBlock) (UIImage *_Nullable img);

@interface ImagePickerManager : NSObject<UINavigationControllerDelegate, UIImagePickerControllerDelegate>

@property (nonatomic, copy) ImagePickBlock _Nullable pickBlock;

- (void)showPickInVC:(UIViewController *)vc sourceType:(UIImagePickerControllerSourceType)sourceType completion:(ImagePickBlock)completion;

- (void)showNoEditPickInVC:(UIViewController *)vc sourceType:(UIImagePickerControllerSourceType)sourceType completion:(ImagePickBlock)completion;

- (void)uploadImage:(UIImage *)img success:(void (^)(id responseObject))success failure:(void (^)(NSError *error))failure;

- (void)uploadImages:(NSArray *)imgs success:(void (^)(id responseObject))success failure:(void (^)(NSError *error))failure;

@end

NS_ASSUME_NONNULL_END
